﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CS322_V5
{
    public partial class FormaZbir : Form
    {
        public FormaZbir()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            long n = long.Parse(textBox1.Text);
            long suma = 0;

            for (int i = 1; i <= n; i++)
            {
                suma += i;
            }
            label2.Text = " je " + suma;
        }
    }
}
